<?php /* Smarty version Smarty-3.1.18, created on 2018-02-22 11:17:50
         compiled from "/data/www/mystery/protected/modules/webadmin/views/network/commonattach.tpl" */ ?>
<?php /*%%SmartyHeaderCode:6737218255a8e365e1abe94-56180937%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2aefc557f79753c5b6f6105aca045ce84b2986ef' => 
    array (
      0 => '/data/www/mystery/protected/modules/webadmin/views/network/commonattach.tpl',
      1 => 1494904922,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '6737218255a8e365e1abe94-56180937',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'bank_id' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_5a8e365e1dbb33_30226150',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5a8e365e1dbb33_30226150')) {function content_5a8e365e1dbb33_30226150($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("../common/iframe_header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<link href="/css/uploadify.css" rel="stylesheet">
<div class="pad_10" style="margin-top: 40px;">
    <div class="table-list">
        <div class="common-form">
            <input type="file" name="upfile" id="uploadify"/>
            <div>请选择ZIP文件包</div>
        </form>
        </div>
    </div>

</div>

   
<script src="/js/jquery.uploadify.min.js"></script>
<script type="text/javascript">
    $('#uploadify').uploadify({
        //'debug': true,
        'formData'      : {'bank_id' : '<?php echo $_smarty_tpl->tpl_vars['bank_id']->value;?>
'},
        'buttonText' : '请选择ZIP文件',
        'fileObjName' : 'upfile',   
        'swf'      : '/js/uploadify.swf',
        'fileTypeExts' : '*.zip;*.rar',
        'uploader' : '/webadmin/attach/NetcommonZip',
        'onUploadSuccess' : function(file, data, response) {
            var obj = eval('(' + data + ')');
            if (obj.state =='SUCCESS'){
                alert('上传成功');
                window.parent.location.reload();
            } else {
                alert(obj.error);
            }
        } 
    });
</script>
<?php echo $_smarty_tpl->getSubTemplate ("../common/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
